execute @s ~~~ detect ~~~ air 0 kill @s
tp @e[type=arrow,r=3],[hasitem={item=mob:shieldm,location=slot.weapon.offhand}] ~ ~-1000 ~
execute @e[tag=on,hasitem=[{item=mob:a0,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a0
execute @e[tag=a0,hasitem=[{item=mob:a1,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a1
execute @e[tag=a1,hasitem=[{item=mob:a2,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a2
execute @e[tag=a2,hasitem=[{item=mob:a3,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a3
execute @e[tag=a3,hasitem=[{item=mob:a4,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a4
execute @e[tag=a4,hasitem=[{item=mob:a5,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a5
execute @e[tag=a5,hasitem=[{item=mob:a6,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a6
execute @e[tag=a6,hasitem=[{item=mob:a7,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a7
execute @e[tag=a7,hasitem=[{item=mob:a8,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a8
execute @e[tag=a8,hasitem=[{item=mob:a9,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a9
execute @e[tag=a9,hasitem=[{item=mob:a10,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a10
execute @e[tag=a10,hasitem=[{item=mob:a11,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a11
execute @e[tag=a11,hasitem=[{item=mob:a12,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a12
execute @e[tag=a12,hasitem=[{item=mob:a13,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a13
execute @e[tag=a13,hasitem=[{item=mob:a14,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a14
execute @e[tag=14,hasitem=[{item=mob:a15,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a15
execute @e[tag=a14,hasitem=[{item=mob:a16,location=slot.inventory,slot=4,quantity=1}]] ~ ~ ~ tag @e add a16
execute @e[tag=on,hasitem=[{item=mob:f12,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f2
execute @e[tag=f2,hasitem=[{item=mob:f11,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f3
execute @e[tag=f3,hasitem=[{item=mob:f10,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f4
execute @e[tag=f4,hasitem=[{item=mob:f9,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f5
execute @e[tag=f5,hasitem=[{item=mob:f8,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f6
execute @e[tag=f6,hasitem=[{item=mob:f7,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f7
execute @e[tag=f7,hasitem=[{item=mob:f6,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f8
execute @e[tag=f8,hasitem=[{item=mob:f5,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f9
execute @e[tag=f9,hasitem=[{item=mob:f4,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f10
execute @e[tag=f10,hasitem=[{item=mob:f3,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f11
execute @e[tag=f11,hasitem=[{item=mob:f2,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f12
execute @e[tag=f12,hasitem=[{item=mob:f1,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f13
execute @e[tag=f13,hasitem=[{item=mob:f0,location=slot.inventory,slot=13,quantity=1}]] ~ ~ ~ tag @e add f0